package com.xinyue.user.service;



import com.xinyue.user.pojo.User;


import java.util.List;

public interface UserService  {
    int deleteByPrimaryKey(Integer id) throws Exception;

    int insert(User record) throws Exception;

    User selectByPrimaryKey(Integer id) throws Exception;

    List<User> selectAll() throws Exception;

    int updateByPrimaryKey(User record) throws Exception;

    User selectToLoginByUsername(String username,String password) throws Exception;


    User selectToLoginByPhone(String phone,String password) throws Exception;

    //判断手机号是否为第一次登录
    User selectByPhone(String phone) throws Exception;
}
